package com.cefa.edu.service;

import com.cefa.edu.dao.RoleMapper;
import com.cefa.edu.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by cc664 on 2018/8/13.
 * @aa 角色service
 */
@Service
public class RoleService {
    @Autowired
    private RoleMapper roleMapper;


    /**
     * @aa 根据roleType 获取对应的role对象
     * @aa add by chaijian 2018-08-13
     * @param roleType
     * @return Role对象
     */
    public Role getRoleByRoleType(Integer roleType){
        return roleMapper.getRoleByRoleType(roleType);
    }
}
